package com.itheima.service.Impl;

import com.itheima.domain.User;
import com.itheima.mapper.UserMapper;
import com.itheima.service.Service;
import com.itheima.utils.MapperUtil;

public class UserService implements Service {
    @Override
    public User login(String username, String password) {
        User user = new User();
        user.setUsername(username);
        user.setPwd(password);
        UserMapper mapper = MapperUtil.getMapper(UserMapper.class);
        User res = mapper.login(user);
        return res;
    }
}
